﻿using System;
using System.Collections.Generic;

namespace Topro.Application.Interface
{
    using Topro.Entity;
    using Topro.Entity.Query;
    using Topro.Entity.Request.InventoryItem;
    using Topro.Entity.Request.StockIn;
    using Topro.Entity.Response.StockIn;

    /// <summary>
    /// 入库业务接口
    /// </summary>
    public interface StockInService
    {
        /// <summary>
        /// 入库
        /// </summary>
        /// <param name="stockIn">入库</param>
        /// <param name="stockInItem">明细</param>
        JResult Save(StockInSaveRequest stockIn, List<InventoryItemSaveRequest> stockInItem);

        /// <summary>
        /// 入库查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        DataGrid<StockInQueryResponse> Pager(StockInQuery query);
    }
}
